package com.ruowei.modules.sys.domain.enumeration;

import com.fasterxml.jackson.annotation.JsonValue;
import com.ruowei.config.enumConfig.BaseEnum;

public enum ProcessApprovalType implements BaseEnum {
    INTERNAL("1", "机构内审批"),
    UPPER("2", "上一级机构审批"),
    APPOINT("3", "指定机构审批");
    /**
     * value
     * 用1位数字编码
     */
    private final String code;
    private final String message;

    ProcessApprovalType(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    @JsonValue
    public String getMessage() {
        return message;
    }
}
